#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <conio.h>
#include <vector>
#include "WorkerManger.h"
#include "work.h"

int main() {

	Workermanger WM;
	int a = -1;
	WM.Showmenu();
	while (1) {
		std::cin >> a;
		switch (a)
		{
		case 0:
			WM.EXIT();
			break;
		case 1:
			WM.Showmenu();
			break;
		case 2:
			WM.Addwork();
			WM.Showmenu();
			break;
		case 3:
			WM.ShowAllwork();
			WM.Showmenu();
			break;
		case 4:
			WM.delete_work();
			WM.Showmenu();
			break;
		case 5:
			WM.modify_work();
			WM.Showmenu();
			break;
		case 6:
			WM.find_work();
			WM.Showmenu();
			break;
		case 7:
			WM.sort_work();
			WM.Showmenu();
			break;
		case 8:
			WM.deleteAllwork();
			WM.Showmenu();
			break;
		default:
			break;
		}
	}
}